package com.hui.platform.falseworkapi.service.business.user.convert;

import com.hui.platform.falseworkapi.service.business.user.entity.TbAuthorities;
import com.hui.platform.falseworkapi.service.business.user.bo.TbAuthoritiesBO;
import com.hui.platform.falseworkapi.service.business.user.dto.TbAuthoritiesDTO;

import org.mapstruct.Mapper;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 *  TbAuthorities转换器
 *
 * @author hui
 * @since 2020-04-17
 */
@Mapper
public interface TbAuthoritiesConvert {

    TbAuthoritiesConvert INSTANCE=Mappers.getMapper(TbAuthoritiesConvert.class);

    /**
     * DTO转DO
     * @param dto dto对象
     * @return do对象
     */
    @Mappings({})
    TbAuthorities dto2do(TbAuthoritiesDTO dto);

    @Mappings({})
    List<TbAuthorities> dto2do(List<TbAuthoritiesDTO> dtoList);

    /**
     * DO转BO
     * @param dataObject do对象
     * @return bo对象
     */
    @Mappings({})
    TbAuthoritiesBO do2bo(TbAuthorities dataObject);

    @Mappings({})
    List<TbAuthoritiesBO> do2bo(List<TbAuthorities> doList);

}
